package test01.demo03;

/**
 * @author ZQX
 * @date 2025-04-09
 */
public class Student {
    private String name;

    /**
     * Grade 是一个枚举类
     */
    private Grade grade;

    public Student() {
    }

    public Student(String name, Grade grade) {
        this.name = name;
        this.grade = grade;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Grade getGrade() {
        return grade;
    }

    public void setGrade(Grade grade) {
        this.grade = grade;
    }

    @Override
    public String toString() {
        return "姓名：" + this.name + ",等级：" + this.grade;
    }
}
